home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / ewl / ewl_datepicker.h < prev    next >
C/C++ Source or Header  |  2006-01-09  |  1KB  |  54 lines

  1. #ifndef __EWL_DATEPICKER_H__
  2. #define __EWL_DATEPICKER_H__
  3.  
  4. /**
  5.  * @file ewl_datepicker.h
  6.  * @defgroup Ewl_Datepicker datepicker: The EWL Datepicker widget
  7.  * @brief Defines the Ewl_Datepicker class,  
  8.  *
  9.  */
  10.  
  11. /** 
  12.  * @themekey /datepicker/file
  13.  * @themekey /datepicker/group
  14.  */
  15.  
  16. typedef struct Ewl_Datepicker Ewl_Datepicker;
  17.  
  18. /**
  19.  * @def EWL_DATEPICKER(datepicker)
  20.  * Typecast a pointer to an Ewl_Datepicker pointer
  21.  */
  22. #define EWL_DATEPICKER(datepicker) ((Ewl_Datepicker *) datepicker)
  23.  
  24. /** 
  25.  * @struct Ewl_Datepicker
  26.  * Inherits from an Ewl_Text 
  27.  * 
  28.  */
  29. struct Ewl_Datepicker
  30. {
  31.     Ewl_Text  text; /**< Inherit from Ewl_Text */
  32.  
  33.     Ewl_Widget* calendar;
  34.     Ewl_Widget* calendar_window;
  35.  
  36. };
  37.  
  38. Ewl_Widget    *ewl_datepicker_new(void);
  39. int         ewl_datepicker_init(Ewl_Datepicker* datepicker);
  40.  
  41. /*
  42.  * Internally used callbacks, override at your risk
  43.  */
  44. void ewl_datepicker_destroy_cb(Ewl_Widget *w, void *ev_data,
  45.                 void *user_data);
  46. void ewl_datepicker_configure_cb(Ewl_Widget *w, void *ev_data,
  47.                 void *user_data);
  48. void ewl_datepicker_value_changed_cb(Ewl_Widget *w, void *ev_data,
  49.                 void *user_data);
  50. void ewl_datepicker_realize_cb(Ewl_Widget *w, void *ev_data, 
  51.                 void *user_data);
  52.  
  53. #endif
  54.